import service from '@/utils/request'
// eslint-disable-next-line no-unused-vars
const { httpPostForm, httpPost, httpGet } = service
//======================审核=======================
//==========     业主下发清单6050  =============
//提交
const commit = params =>{
    return httpPost({
        url: '/ownercontract/audit/commit',
        params
    })
}
//审核
const audit = params =>{
    return httpPost({
        url: '/ownercontract/audit/audit',
        params
    })
}
//获取审核历史
const history = params =>{
    return httpPost({
        url: '/ownercontract/audit/getAuditHistory',
        params
    })
}
//获取流程按钮显示状态
const getCurrentUnitInfo = params =>{
    return httpPost({
        url: '/ownercontract/audit/getCurrentUnitInfo',
        params
    })
}
//撤回
const undoworkt = params =>{
    return httpPost({
        url: '/ownercontract/audit/undoAudit',
        params
    })
}
//作废
const nullify = params =>{
    return httpPost({
        url: '/ownercontract/audit/cancel',
        params
    })
}
export {
    audit,
    commit,
    history,
    undoworkt,
    nullify,
    getCurrentUnitInfo,
}
